package com.lynx.system.controller;

import com.lynx.system.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/account")
public class AccountController {
    @Autowired
    private AccountService accountService;

    @GetMapping("/login/{username}/{password}/{type}")
    public Object login(@PathVariable String username,
                        @PathVariable String password,
                        @PathVariable String type){
        Object result = accountService.login(username,password,type);
        return result;
    }
}
